<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSON的创建和使用</title>
</head>
<script type="text/javascript">
    var j1 = {"name":"张三","age":"18"};
    alert(j1.name);
    var j2 = {"name":['张三1','张三2','张三3'],"age":20};
    alert(j2.name[2]);
    var j3 = {"users":[{"name":"张三1","age":18},{"name":"张三2","age":19}]}
    alert(j3.users[1].name)
</script>
<body>

</body>
</html>